package com.example.zzm_408;

/**
 * Created by 张志敏 on 2017/5/21.
 */

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

    public class zz01 extends AppCompatActivity implements View.OnClickListener{
        private Button btn;
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_main);
            init();
        }

        private void init() {
            btn=(Button)findViewById(R.id.button);
            btn.setOnClickListener(this);
        }

        @Override
        public void onClick(View v) {
            switch (v.getId()){
                case R.id.button:
                    Intent intent=new Intent(zz01.this,MainActivity.class);
                    startActivity(intent);
                    break;}

        }
    }


